<?php

class WebModule extends CWebModule {
	
	protected static $_assetsUrl;
	
	protected function init() {
		$this->setImport(array(
			$this->name.'.models.*',
			$this->name.'.models.forms.*',
			$this->name.'.helpers.*',
			$this->name.'.components.*',
		));
	}
	
	public function getModuleName() {
		return 'Empty Module';
	}
	
	/**
	 * @return string the base URL that contains all published asset files of gii.
	 */
	public static function getAssetsUrl()
	{
		if(self::$_assetsUrl===null)
			self::$_assetsUrl=Yii::app()
				->getAssetManager()
				->publish(dirname(__FILE__).'/assets', false, -1, true);
		return self::$_assetsUrl;
	}

	/**
	 * @param string $value the base URL that contains all published asset files of gii.
	 */
	public static function setAssetsUrl($value)
	{
		self::$_assetsUrl=$value;
	}
}

?>